package com.manbearpig.todue.test;

import java.util.Date;

import android.location.Location;

import com.manbearpig.todue.ToDo;

import junit.framework.TestCase;

/**
 * JUnit Test for making sure a valid todo is accepted correctly
 * @author Jonathan
 *
 */
public class ToDoValidity extends TestCase {

	public ToDoValidity(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
	}
	
	/**
	 * Tests to make sure the ToDo class validity works properly
	 */
	public void testValid(){
		ToDo t = new ToDo(new Date(), new Location("Georgia"),"Test","Test",0,"Work","Completed");
		assertTrue(t.isValid());
	}

}
